package edu.hnu.tradeserver.feign;

import edu.hnu.commonutils.Result;
import edu.hnu.commonutils.UserDb.TradersResponse;

import edu.hnu.tradeserver.config.FeignConfiguration;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "user-server" ,configuration = FeignConfiguration.class)
public interface UserFeign {
    @GetMapping("/trader/getTraderDetail")
    TradersResponse getTraderDetail(@RequestParam Integer id);

}
